package com.xxx.blog.mapper;

import com.xxx.blog.domain.Article;
import com.xxx.blog.query.ArticleQuery;
import com.xxx.blog.vo.GdVo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ArticleMapper {
    List<Article> findAll();
    Article findOne(Long id);

    List<Article> queryPage(ArticleQuery ArticleQuery);

    void addArticle(Article Article);
    void updateArticle(Article Article);
    void deleteArticle(Long id);
    void batchArticle(Long[] ids);

    Article getByFileName(String fileName);

    List<GdVo> getGd();

    List<Article> getRa(Article article);

    List<Article> findArticleByYearMonth(String yearMonth);
}
